//
//  CLImageCollectionView.h
//  CLImagePicker
//
//  Created by Criss on 2017/3/17.
//  Copyright © 2017年 Criss. All rights reserved.
//

#import <UIKit/UIKit.h>
@class CLImageCollectionView;
@protocol CLImageCollectionViewShowAlertDelegate <NSObject>

- (void)imageCollectionView:(CLImageCollectionView *)imageCollectionView;

@end

@interface CLImageCollectionView : UICollectionView

@property (weak, nonatomic) id<CLImageCollectionViewShowAlertDelegate> showAlertDelegate;

/**
 选中的图片
 */
@property (strong, nonatomic) NSMutableDictionary *imageDicM;

/**
 选择图片的顺序
 */
@property (strong, nonatomic) NSMutableArray *sortOrder;

/**
 最多允许选择几张图片
 */
@property (assign, nonatomic) NSInteger imageCounts;

/**
 初始显示的图片数量
 */
@property (assign, nonatomic) NSInteger originalImagesCounts;

+ (instancetype)collectionWithImageArray:(NSArray<UIImage *> *)imageArray;

@end
